/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mahumLogs.backedbeans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 *
 * @author Kalast
 */
@Entity
public class TopSite implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    @Column(length = 100)
    private String domaine;
    private int visites;
    private int jour;
    private int mois;
    private int annee;
    private int heure;
    private long dataSize;

    /**
     * 
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     * @param id 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     * @return dateSize
     */
    public long getDataSize() {
        return dataSize;
    }

    /**
     * 
     * @param dataSize 
     */
    public void setDataSize(long dataSize) {
        this.dataSize = dataSize;
    }
    
    /**
     * 
     * @return heure
     */
    public int getHeure() {
        return heure;
    }

    /**
     * 
     * @param heure 
     */
    public void setHeure(int heure) {
        this.heure = heure;
    }

    /**
     * 
     * @return domaine
     */
    public String getDomaine() {
        return domaine;
    }

    /**
     * 
     * @param domaine 
     */
    public void setDomaine(String domaine) {
        this.domaine = domaine;
    }

    /**
     * 
     * @return visites
     */
    public int getVisites() {
        return visites;
    }

    /**
     * 
     * @param visites 
     */
    public void setVisites(int visites) {
        this.visites = visites;
    }

    /**
     * 
     * @return jour
     */
    public int getJour() {
        return jour;
    }

    /**
     * 
     * @param jour 
     */
    public void setJour(int jour) {
        this.jour = jour;
    }

    /**
     * 
     * @return mois
     */
    public int getMois() {
        return mois;
    }

    /**
     * 
     * @param mois 
     */
    public void setMois(int mois) {
        this.mois = mois;
    }

    /**
     * 
     * @return annee
     */
    public int getAnnee() {
        return annee;
    }

    /**
     * 
     * @param annee 
     */
    public void setAnnee(int annee) {
        this.annee = annee;
    }

    /**
     * 
     * @return hash
     */
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TopSite)) {
            return false;
        }
        TopSite other = (TopSite) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.mahumLogs.backedbeans.TopSite[ id=" + id + " ]";
    }
    
}
